stylecontext: Add an animating framework
authorBenjamin Otte <otte@redhat.com>
Tue, 10 Apr 2012 13:37:35 +0000 (15:37 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Apr 2012 06:59:22 +0000 (08:59 +0200)
commita2408088240d25157f56f85dd0dcdef6fc063682
tree3e58e562f68ac341faa062bf99b1996157eafb6a
parent50fdb6a13ff39c31d189756497d240627c4c1669
stylecontext: Add an animating framework

The design principles were:

- synchronized
If multiple style contexts are animating, they should all do an
animation step at the same time.

- degrades well
Even when there's thousands of style contexts all animating at the same
time, the animation steps don't starve the CPU. This is achieved by
making sure the timeout is really fast. It just sets a bunch of flags.

- no hidden bottlenecks
Turning animatability on or off on a style context is O(1).

So far it is unused.
gtk/gtkcsstypes.c
gtk/gtkcsstypesprivate.h
gtk/gtkstylecontext.c